//
//  JRTJTableViewCell.m
//  Cartoon
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 YSZ. All rights reserved.
//

#import "JRTJTableViewCell.h"
#import "PrefixHeader.pch"
@implementation JRTJTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.bigImage = [[UIImageView alloc] init];
        self.titleLabel = [[UILabel alloc] init];
        self.nameLabel = [[UILabel alloc] init];
        self.artistLabel = [[UILabel alloc] init];
        self.briefLabel = [[UILabel alloc] init];
        
        [self.contentView addSubview:_nameLabel];
        [self.contentView addSubview:_bigImage];
        [self.contentView addSubview:_titleLabel];
        [self.contentView addSubview:_artistLabel];
        [self.contentView addSubview:_briefLabel];
        
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    
    _titleLabel.frame = CGRectMake(10 *WIDTH, HEIGHT*  10 , 150 * WIDTH, 30 * HEIGHT);
    _titleLabel.font = [UIFont systemFontOfSize:20];
    _titleLabel.textColor = [UIColor colorWithRed:13 / 255.0 green:184 / 255.0 blue: 240 / 255.0 alpha:1];
    _bigImage.frame = CGRectMake(10 * WIDTH, 40 * HEIGHT,  110 *WIDTH,  150 * HEIGHT);
    _nameLabel.frame = CGRectMake(130 *WIDTH, 50 * HEIGHT, 100 *WIDTH, 20 * WIDTH);
    _nameLabel.font = [UIFont systemFontOfSize:15 *WIDTH];
    _artistLabel.frame = CGRectMake(130 *WIDTH, 70 * HEIGHT, 100 *WIDTH, 20 * WIDTH);
    _artistLabel.font =[UIFont systemFontOfSize:15 * WIDTH];
    _briefLabel.frame = CGRectMake(130 * WIDTH, 90 * HEIGHT, 240 * WIDTH, 100 * HEIGHT);
    _briefLabel.font = [UIFont systemFontOfSize:15];
    _nameLabel.textColor = [UIColor lightGrayColor];
    _artistLabel.textColor = [UIColor lightGrayColor];
    _briefLabel.textColor = [UIColor lightGrayColor];
    
}



- (void)awakeFromNib {
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
